package gof.com.yew.composite;
/**
 * Leaf : 叶子节点，无子节点
 * @author yw
 */
public class TxtFile implements AbstractFile {
	private String name;
	
	public TxtFile(String name) {
		this.name = name;
	}

	@Override
	public void killVirus() {
		System.out.println("<<<文本文件："+name+"，进行查杀>>>");
	}
}